<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the number of pages per set of pages</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudoc.setpagemode.html">HaruDoc::setPageMode</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="harudoc.setpassword.html">HaruDoc::setPassword</a></div>
 <div class="up"><a href="class.harudoc.html">HaruDoc</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="harudoc.setpagesconfiguration" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">HaruDoc::setPagesConfiguration</h1>
  <p class="verinfo">(PECL haru &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">HaruDoc::setPagesConfiguration</span> &mdash; <span class="dc-title">Set the number of pages per set of pages</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-harudoc.setpagesconfiguration-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>HaruDoc::setPagesConfiguration</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$page_per_pages</code></span>
   )</div>

  <p class="para rdfs-comment">
   By default the document has one pages object as a root for all pages.
   All page objects are create as branches of this object. One pages object
   can contain only 8191, therefore the maximum number of pages per document
   is 8191. But you can change that fact by setting
   <em><code class="parameter">page_per_pages</code></em> parameter, so that the root pages
   object contains 8191 more pages (not page) objects, which in turn contain
   8191 pages each. So the maximum number of pages in the document becomes
   8191*<em><code class="parameter">page_per_pages</code></em>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-harudoc.setpagesconfiguration-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">page_per_pages</code></em></dt>

     <dd>

      <p class="para">
       The numbers of pages that a pages object can contain.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-harudoc.setpagesconfiguration-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-harudoc.setpagesconfiguration-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">发生错误时抛出 <a href="class.haruexception.html" class="classname">HaruException</a> 异常。</p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudoc.setpagemode.html">HaruDoc::setPageMode</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="harudoc.setpassword.html">HaruDoc::setPassword</a></div>
 <div class="up"><a href="class.harudoc.html">HaruDoc</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
